<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
<link id="skincss" href="res/admin/{{$system.skin}}/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="res/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="res/admin/js/index.js"></script>
<script type="text/javascript">
function chageSkin(skinname){
	$('#skincss').attr('href','res/admin/'+skinname+'/index.css');
	$.post("admin.php?act=saveskin&skinname="+skinname);
}
$(document).ready(function() {
    $('#topmenus li').click(function() {
        $(this).parent().children().removeClass("now");
        $(this).addClass('now');
    })
});
</script>
</head>

<body>
<div id="header">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td rowspan="2"><div class="logo"></div></td>
	    <td class="right_txt">您好！ {{$admin.REAL_NAME}}({{$admin.USERNAME}}),登录日期：{{$admin.LOGIN_TIME}} 
	    皮肤选择：[<a href="#" onclick="chageSkin('skin_blue')">默认(蓝)</a>,<a href="#" onclick="chageSkin('skin_red')">红色</a>]
	    	[<a href="admin.php?ctl=login&act=logout" mid='0'>退出登录</a>] &nbsp;&nbsp;</td>
	  </tr><tr><td><div id="topmenus"><ul>
	    {{foreach from=$datas.topmenus item=topmenu}}
            <li {{if $topmenu.ID==26}}class="now"{{/if}}  mid="{{$topmenu.ID}}"><a href="javascript:void(0)" mid="{{$topmenu.ID}}">{{$topmenu.TITLE}}</a></li>
	    {{/foreach}}
	    </ul></div></td>
	  </tr>
      <!-- class="now" -->
	</table>
</div>
<div id="main">
	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td id="main_left" style="height:100%"><iframe id="xLeft" src="admin.php?act=left" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe></td>
        <td id="main_line">&lt;</td>
        <td id="main_right" style="height:100%"><iframe id="xRight" name="mainRight" src="admin.php?act=right" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe></td>
      </tr>
    </table>
    <div class="clear"></div>
</div>
<div id="footer">&nbsp;&nbsp;版权所有：Copyright@2014 SonTin Systems, Inc.</div>
</body>
</html>
